package com.kotlin.musicplayer.utils

import android.util.Log

object URLProviderUtils {
    /**
     * 获取首页的url
     *
     * @param offset 数据偏移量
     * @param size   返回数据的条目个数
     * @return url
     */
    fun getHomeUrl(offset: Int, size: Int): String {
        val url =
            ("http://tingapi.ting.baidu.com/v1/restserver/ting?from=android&version=5.6.5.0&method=baidu.ting.artist.getSongList&format=json&order=2&tinguid=7988&artistid=7988"
                    + "&offset=" + offset
                    + "&limits=" + size)
        Log.i("Main_url", url)
        return url
    }
    fun getHomeUrl2(): String {
        val url =
            ("https://v0.yiketianqi.com/api"
                    )
        Log.i("Main_url", url)
        return url
    }
}